package com.monkey.model.user;

import com.monkey.core.ErrorCode;

import java.util.Date;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/9.
 */
public class UserCode {
    private int code;
    private String msg;
    private Date time;
    private int verify;

    public UserCode(int code) {
        this(code, null, 0);
    }

    public UserCode(int code, Date time, int verify) {
        this.code = code;
        this.msg = ErrorCode.getMsg(code);
        this.time = time;
        this.verify = verify;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public Date getTime() {
        return time;
    }

    public int getVerify() {
        return verify;
    }
}
